package cn.com.starbucks.activity.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Description: Feign测试
 *
 * @author tecsmile@outlook.com
 * @version 1.0
 * @date 2021/4/14 1:56 下午
 **/

@FeignClient(contextId = "remoteActivityService", name = "${remote.service.activity.name}",
        url = "${remote.service.activity.url}")
public interface TestFeignClient {
    /**
     * test Remote Service1
     *
     * @return String
     */
    @GetMapping("/test")
    String testClient();

    /**
     * test Remote Service2
     *
     * @return String
     */
    @GetMapping("/test/a")
    String testClient2();
}
